package com.dp.order;

import lombok.SneakyThrows;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.net.InetAddress;

/**
 * @author linzizun
 * @version 1.0
 */
@EnableScheduling
@SpringBootApplication
public class OrderMain {
    public static void main(String[] args) {
        SpringApplication.run(OrderMain.class, args);
        out();
    }

    @SneakyThrows
    private static void out() {
//        System.err.printf("swagger访问地址：http://%s:%s/swagger-ui.html%n",
//                InetAddress.getLocalHost().getHostAddress(), 8001);
//        for (int i = 0; i < 5; i++) {
//            System.err.printf("道璞订单系统访问地址：http://%s:%s/8888.html%n",
//                    InetAddress.getLocalHost().getHostAddress(), 16888);
//        }
//        Runtime.getRuntime().exec(String.format("cmd /c start http://%s:%s/8888.html",
//                InetAddress.getLocalHost().getHostAddress(), 16888));
        Runtime.getRuntime().exec("cmd /c start http://localhost:16888/8888.html");
    }
}
